package com.smart.community.common.base.result;

import lombok.Getter;

@Getter
public enum ResultStatus {
    SUCCESS(200, "成功"),
    SYS_ERROR(400, "系统错误"),
    USER_NO_EXIST(401, "用户名或密码错误"),
    USER_BEEN_DELETE(402, "用户已被删除"),
    USER_EXIST_ERROR(403, "用户已存在"),
    USER_AUTH_ERROR(403, "用户认证失败"),
    COMMENT_NO_EXIST(404, "评论不存在"),
    COMMENT_NULL(405, "没有评论"),
    DELETE_FAULT(406, "删除失败"),
    USER_NAME_ERROR(501, "用户名为空"),
    USER_PWD_ERROR(502, "密码不能为空"),
    USER_PHONE_ERROR(503, "手机号不能为空"),
    USER_NUMBER_ERROR(504, "身份证不能为空"),
    USER_DOES_NOT_EXIST(505, "用户名不存在"),
    USER_NAME_REPEAT_ERROR(506, "你的用户名已经有人取了"),
    USER_PASSWORD(507, "密码错误"),
    ADDRESS_ERROR(601, "收货地址错误"),
    ADDRESS_REVISE(603, "收货地址修改失败"),
    ADDRESS_NUMBER_ERROR(602, "收货地址超出十个"),
    INSERT_FAULT(406, "添加失败"),
    UPDATE_FAULT(408, "修改失败"),
    DATA_NULL(405, "没有数据"),
    ORDERS_XX(701, "查询失败，无此信息"),
    USER_PHONE_XX(509, "手机号不符合规范"),
    USER_NUMBER_XX(508, "身份证不符合规范"),
    VERIFY_CODE_CREATE_ERROR(508, "验证码生成失败"),
    VERIFY_CODE_ERROR(509, "验证码输入错误"),
    //
    SMS_SEND_VERIFY_CODE_ERROR(40510, "发送验证码失败"),
    //
    SMS_VERIFY_CODE_ERROR(40510, "手机验证码错误或者已过期"),
    //
    ARGS_VALID_ERROR(605, "参数校验失败");


    final int code;
    final String msg;

    ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
